package com.funtl.spring.cloud.alibaba.business;

import com.funtl.spring.cloud.alibaba.business.fallback.BusinessAdminFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

@FeignClient(value = "provider-admin", fallback = BusinessAdminFallback.class)
public interface BusinessAdminFeign {
    //相当于访问服务名为provide-admin，路径为hi的请求
    //http://provide-admin:port/hi 端口和ip从注册中心获取到
    //provide-admin 是在application.yml中配置的服务名称
    @GetMapping(value = "hi")
    String sayHi();
}
